import { get, post } from '@/utils/httpHelper';
import getBaseUrl from '@/utils/baseUrlHelper';

module.exports = {
  async GETSample (id) {
    let url = `${getBaseUrl()}/test/${id}`;
    const body = await get(url);
    return body.data;
  },

  async POSTSample (criteria) {
    let url = `${getBaseUrl()}/test`;
    const body = await post(url, criteria);
    return body.data;
  },
};
